<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./echarts.min.js"></script>
</head>
<body>
    <div id="app" style="width: 800px; height: 500px;"></div>
</body>
<script>
    var myEchart =echarts.init(document.getElementById('app'))
    var option ={
        title: {
    text: '环比'
  },
  legend: {
    data: ['上周', '本周']
  },
  xAxis: {
    type: 'category',
    boundaryGap: false,
    // data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
  },
  yAxis: {
    type: 'value'
  },
  dataset: {
    source: [
    ['周一',12,18],
    ['周二',16,19],
    ['周三',20,33],
    ['周四',45,65],
    ['周五',60,80],
        ]
        },
     series: [
           { 
            name:'本周',
            type: 'line',
          },
          { 
            name:'上周',
            type: 'line',
          }
  ]
    }
    myEchart.setOption(option)
</script>
</html>